package com.tommy.common.enums;

/**
 * @Package Name: com.tommy.common.enums
 * @Description: TODO
 * @Author tommy
 * @Date 2017.11.17 10:14
 * @Modify Who      When     What
 * ---------- ----------- -------------
 */
public enum ResultCode {

    SUCCESS(1, "SUCCESS"),
    ERROR(1, "ERROR");

    private int code;
    private String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
